# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Rick W. Chen <stuffcorpse at archlinux dot us>
# Contributor: Gaute Hope <eg@gaute.vetsj.com>
# Contributor: Stein Krauz <steinkrauz@yahoo.com>

pkgname=ttf-anonymous-pro
pkgver=1.003
pkgrel=7
pkgdesc='A family of four fixed-width fonts designed especially with coding in mind'
arch=('any')
url='https://www.marksimonson.com/fonts/view/anonymous-pro'
license=('custom:OFL')
depends=('xorg-fonts-encodings')
source=('https://www.marksimonson.com/assets/content/fonts/AnonymousPro-1_002.zip'
        'https://www.marksimonson.com/assets/content/fonts/AnonymousProMinus-1_003.zip')
sha512sums=('e34c757b6be907b84194b4506ec2389113bb0d3750d518d7b2f7f9deb992172fd625dfb5a9c105df985b796c15559a5fcf53b123e86449a3fb71fdbfb57b6dd1'
            'd0019892c2a2c2ab90142f01dffb6a3c115d436181060247061c24256d333ae2ab6f28e1a233657061cc8b068b02ee974e5b6ffe4b9c26fb1c792d713f81d7ab')
b2sums=('e9cc288dfca7836cf914d5b225b64998467fad2da7c164104a1903ae6884713ca354329d0e1d26720b1e6c18e40d70f3509cf11d6d462ba96d345b9b93570fe5'
        '461979adcb141b40cc64fe0e9c961a9a9ae2dc2f3ba0797d0869ff405067a96dbad795518e686b060240891ed72e99a1d11ad0f7c262bea0cb496795bb935003')

package() {
  install -d "${pkgdir}/usr/share/fonts/TTF/"
  install -m644 AnonymousPro-1.002.001/*.ttf "${pkgdir}/usr/share/fonts/TTF/"
  install -m644 AnonymousProMinus-1_003/*.ttf "${pkgdir}/usr/share/fonts/TTF/"

  install -d "${pkgdir}"/usr/share/licenses/${pkgname}
  install -m644 AnonymousPro-1.002.001/OFL{,-FAQ}.txt \
    "${pkgdir}"/usr/share/licenses/${pkgname}
}

